package com.vrv.app.cyberspace.modules.sys.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.vrv.app.cyberspace.common.utils.JSONResult;
import com.vrv.app.cyberspace.modules.sys.entity.RiskTypeTable;
import com.vrv.app.cyberspace.modules.sys.service.IRiskTypeTableService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import static com.vrv.app.cyberspace.common.utils.JSONResult.renderSuccess;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@Api(description="风险类型")
@RestController
@RequestMapping("/sys/riskType")
public class RiskTypeTableController extends BaseController {
    @Autowired
    private IRiskTypeTableService riskTypeTableService;

    @GetMapping()
    public JSONResult getListRiskType(){
        return renderSuccess(riskTypeTableService.selectList(new EntityWrapper<RiskTypeTable>().orderBy("id",true)));
    }
}

